package com.hnevc.yourhealthmanager.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.lang.Nullable;

import java.util.Date;

@Data
@TableName("health_user_table")
@ApiModel(value = "HealthUser", description = "用户信息")
public class HealthUser {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer id;
    @ApiModelProperty(value = "用户电话")
    private String userPhone;
    @ApiModelProperty(value = "用户密码")
    private String password;
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "用户邮箱")
    private String email;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "身高,单位cm")
    private Float height;
    @ApiModelProperty(value = "年龄")
    private Integer age;
    @ApiModelProperty(value = "注册日期")
    private Date registerDate;
    @Nullable
    @ApiModelProperty(value = "用户头像")
    private String icon;
    @ApiModelProperty(value = "体重")
    private Float weight;

    // 省略getter和setter方法，‌实际使用时请添加
}
